package com.youku.ast;

public class DotAst extends Ast {

	public DotAst(Ast obj, Ast field) {
		super(obj, field);
	}

	public Ast object() {
		return getChild(0);
	}

	public Ast field() {
		return getChild(1);
	}

	@Override
	public String toString() {
		return new StringBuilder().append('(').append(object()).append('.').append(field()).append(')').toString();
	}

}
